package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.CourseTeacherDTO;
import com.xuecheng.content.entity.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-04-06
 */
public interface CourseTeacherService extends IService<CourseTeacher> {


    /**
     * <p>
     * 修改或创建课程教师
     * </p>
     *
     * @param courseTeacherDTO 课程教师对象
     * @return CourseTeacherDTO
     */
    CourseTeacherDTO createOrModifyCourseTeacher(CourseTeacherDTO courseTeacherDTO, Long companyId);

    /**
     * <p>
     * 删除课程教师
     * </p>
     *
     * @param courseBaseId    课程id
     * @param courseTeacherId 课程教师id
     * @return boolean
     */
    boolean removeCourseTeacher(Long courseBaseId, Long courseTeacherId);

    /**
     * <p>
     * 分页查询课程下教师信息
     * </p>
     *
     * @param courseBaseId 课程id
     * @return PageVO
     */
    List<CourseTeacherDTO> queryCourseTeacherList(Long courseBaseId, Long companyId);
}
